package com.huateng.util;

import org.apache.log4j.Logger;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by joy on 2016/11/7.
 */
public class CloseUitl {
    private static Logger logger = Logger.getLogger(RedisUtils.class);
    public  static void close(Closeable closeable){
        if(closeable!=null){
            try {
                closeable.close();
            } catch (IOException e) {
                logger.error(e);
            }
        }
    }
}
